package com.fengye.ms.registry.consul.customize.configuration;

import com.fengye.ms.registry.consul.customize.RegistrationCustomizer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 配置类,需要在 spring.factories 文件中声明
 * @author sky
 * @version 1.0
 * @since 2021/3/30 16:10
 */
@Configuration
public class ConsulAutoConfiguration {
    @Bean
    public RegistrationCustomizer registrationCustomizer(){
        System.out.println("初始化 RegistrationCustomizer");
        return new RegistrationCustomizer();
    }
}
